package de.uni_stuttgart.ipvs.ids.globalstate;

import java.io.Serializable;

/**
 * A wrapper class for the money messages between the processes sent through the
 * socket connections.
 * 
 * @author Team 3/4 Elkhan Dadashov, Ahmed Labib, Dhaval A Shah, Patrick Stortz
 */
@SuppressWarnings("serial")
public class MoneyMessage implements Serializable {

	double amount;
	int sender;

	public MoneyMessage(double amount, int sender) {
		this.amount = amount;
		this.sender = sender;
	}

	public double getAmount() {
		return amount;
	}

	public int getSender() {
		return sender;
	}

	@Override
	public String toString() {
		return "MoneyMessage - " + amount + " from " + sender;
	}
}
